<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <van-button color="#7232dd">单色按钮</van-button>
<van-button color="#7232dd" plain>单色按钮</van-button>
<van-button color="linear-gradient(to right, #ff6034, #ee0a24)">
  渐变色按钮
</van-button>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import {onMounted,getCurrentInstance} from 'vue'
import { Button } from 'vant';
export default {
  name: 'Home',
  components: {
    HelloWorld,
    [Button.name]: Button,
  },
  setup(){
      const { ctx:a } = getCurrentInstance(); 
    onMounted(() => {
      
      
    })
    a.$http({
      url:'/getIndexArticle',
      data:1,
      type:'post',
      showLoading:true
    })
   
    return{

    }
  }
  
}
</script>
